package cn.zhl.defaultmethod;

/**
 * @program: demos
 * @description:
 * @author: 刘振华
 * @create: 2020-04-22 14:56
 **/
public class MyClass implements MyInterface1, MyInterface2 {
	public static void main(String[] args) {
		new MyClass().fun();
	}

	//实现类的优先级要比接口要高
	@Override
	public void fun() {
		MyInterface2.super.fun();
		System.out.println("myclass");
	}
}
